# -*- coding: utf-8 -*-

# pip install unittest
import unittest


class TestCaseDemo(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        pass

    @classmethod
    def tearDownClass(cls):
        pass

    def setUp(self) -> None:
        """
        环境准备:测试用例前置条件
        """
        return super().setUp()

    def tearDown(self) -> None:
        """
        环境还原:测试用例后置条件
        """
        return super().tearDown()

    def test_str_upper(self):
        self.assertTrue('str'.upper(), 'STR')
        pass

    pass


if __name__ == '__main__':
    """
    python -m unittest -v py_unittest.py
    
    """

    unittest.main()

    pass
